package com.ruoyi.equipment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import io.swagger.models.auth.In;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 智能设备表对象 t_equipment
 * 
 * @author ruoyi
 * @date 2021-12-15
 */
public class TEquipment extends BaseEntity
{


    /** 设备唯一编号 */
    @Excel(name="设备编号")
    private String equipmentId;

    /** 部门编号 */

    private Integer deptId;

    @Excel(name = "设备名称")
    private String equipmentName;

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    /** 部门对象 */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;
    /** 仓匣数目 */
    @Excel(name = "仓匣数目")
    private Integer magazineNum;



    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    private Integer status;

    private Integer equipmentStu;

    private Integer equipmentDeploy;

    public Integer getEquipmentDeploy() {
        return equipmentDeploy;
    }

    public void setEquipmentDeploy(Integer equipmentDeploy) {
        this.equipmentDeploy = equipmentDeploy;
    }

    public Integer getEquipmentStu() {
        return equipmentStu;
    }

    public void setEquipmentStu(Integer equipmentStu) {
        this.equipmentStu = equipmentStu;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setEquipmentId(String equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId()
    {
        return equipmentId;
    }
    public void setDeptId(Integer deptId)
    {
        this.deptId = deptId;
    }

    public Integer getDeptId() 
    {
        return deptId;
    }
    public void setMagazineNum(Integer magazineNum) 
    {
        this.magazineNum = magazineNum;
    }

    public Integer getMagazineNum() 
    {
        return magazineNum;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("deptId", getDeptId())
            .append("magazineNum", getMagazineNum())
            .append("createBy", getCreateBy())
            .append("creatTime", getCreatTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status",getStatus())
            .append("dept",getDept())
            .append("equipmentStu",getEquipmentStu())
            .append("equipmentDeploy",getEquipmentDeploy())
            .toString();
    }
}
